home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
demo
/
medit.zip
/
MAINFRM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-23
|
1KB
|
44 lines
#include "stdafx.h"
#include "magmaed.hpp"
#include "multipad.h"
#include "mainfrm.h"
IMPLEMENT_DYNCREATE(CMainFrame, CMDIFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT buttons[] =
{
ID_FILE_NEW, ID_FILE_OPEN, ID_FILE_SAVE, ID_SEPARATOR,
ID_EDIT_CUT, ID_EDIT_COPY, ID_EDIT_PASTE, ID_SEPARATOR,
ID_FILE_PRINT, ID_APP_ABOUT
};
static UINT indicators[] =
{
ID_SEPARATOR,
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
ID_INDICATOR_OVR,
ID_INDICATOR_COL,
ID_INDICATOR_CURRLINE,
ID_INDICATOR_NUMLINES,
};
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
CMDIFrameWnd::OnCreate(lpCreateStruct);
return ((m_ToolBar.Create(this) &&
m_ToolBar.LoadBitmap(IDR_MAINFRAME) &&
m_ToolBar.SetButtons(buttons, sizeof(buttons)/sizeof(UINT)) &&
m_StatusBar.Create(this) &&
m_StatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT)))
? 0 : -1);
}